package com.wc.servicefeign.controller;

import com.wc.servicefeign.service.SchedualServiceHi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Autowired
    private SchedualServiceHi schedualServiceHi;

    @RequestMapping("hello")
    public String sayHI(@RequestParam String name){
        return schedualServiceHi.sayHi(name);
    }
}
